package com.gt.quality.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
/**
 * 用户和角色关联表(SysUserRole)表实体类
 *
 * @author makejava
 * @since 2026-11-25 16:30:08
 */
@Data
@Accessors(chain = true)
@Schema(title = "SysUserRole", description = "EasyCode")
@TableName(value = "sys_user_role", autoResultMap = true)
public class SysUserRole implements Serializable {

    @Serial
	private static final long serialVersionUID = 1L;

    /**
     * Description:  用户ID
     */
    @TableField(value = "user_id")
    @Schema(title = "user_id",description = "用户ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * Description:  角色ID
     */
    @TableField(value = "role_id")
    @Schema(title = "role_id",description = "角色ID")
    private Long roleId;

}


